from flask import json

def ResultOK(status, message=None, data=None):
    result = {
        "status": status,
        "data": {
            "data": data,
            "message": message
        }
    }
    return json.dumps(result)

def ResultError(status, message=None):
    result={
        "status": status,
        "message": message
    }
    return json.dumps(result)